import { defineStore } from 'pinia';
import { ref, reactive } from 'vue'

export const useCountStore = defineStore("count", {
    // 真正存储数据的地方
    state(){
        return {
            sum:6,
            school:'atguigu',
            address:'鸿福科技园'
        }
    },
    actions:{
        increment(value){
            this.sum += value            
        }
    },
    getters:{
        bigSum(state){
            return state.sum * 10
        }
    }

});